# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/dotproject/dotproject-2.1.1.ebuild,v 1.1 2007/12/05 09:16:37 wrobel Exp $

inherit webapp depend.php

DESCRIPTION="phpMyVisites is a free and powerful open source (GNU/GPL) software for websites statistics and audience measurements."
HOMEPAGE="http://www.phpmyvisites.us/"
SRC_URI="http://www.phpmyvisites.net/phpmv2/phpmyvisites.php?url=http%3A%2F%2Fwww.phpmyvisites.net%2Fdl.php%3Fid%3Dphpmyvisites_2_3.zip&pagename=FILE:phpmyvisites%20downloads/phpmyvisites_2_3.zip"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
RESTRICT="nomirror"

S="${WORKDIR}/phpmv2"
LICENSE="GPL-2"

need_php

RDEPEND="dev-db/mysql
	media-libs/gd
	media-libs/freetype"

src_install () {
	webapp_src_preinst

	dodoc CHANGELOG LICENSE README

	mkdir config datas
	cp -R * "${D}${MY_HTDOCSDIR}"

	webapp_serverowned "${MY_HTDOCSDIR}"/config.inc.php
	webapp_serverowned "${MY_HTDOCSDIR}"/config
	webapp_serverowned "${MY_HTDOCSDIR}"/datas

	webapp_src_install
}
